<!DOCTYPE html>
<html lang="en">
<html xmlns:th="http://www.thymeleaf.org">
<link rel="stylesheet" href="./css/font.css">
<link rel="stylesheet" href="./css/xadmin.css">
<script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
<script type="text/javascript" src="./js/xadmin.js"></script>

<head>
    <meta charset="UTF-8">
    <title>goodsList</title>
</head>
<body>
<div class="layui-inline">
    <div>
        <form action="/delGoods">
            <div>
                <label for="goodsid" class="layui-slider-input-txt">请输入要删除的商品id</label>
                <div class="layui-inline">
                    <input type="text" id="goodsid" name="goodsid"
                           autocomplete="off" class="layui-input">
                </div>
                <div class="layui-inline">
                    <button class="layui-btn layui-btn-sm">删除</button>
                </div>
            </div>
        </form>
    </div>
    <div>
        <form action="/updateGoodsInp">
            <div>
                <label for="goodsidforupdate" class="layui-slider-input-txt">请输入要修改的商品id</label>
                <div class="layui-inline">
                    <input type="text" id="goodsidforupdate" name="goodsidforupdate"
                           autocomplete="off" class="layui-input">
                </div>
                <div class="layui-inline">
                    <button class="layui-btn layui-btn-sm">修改</button>
                </div>
            </div>
        </form>
    </div>
</div>
<form action="/addGoods" class="layui-inline" style="border-left: 2px gray solid">
    <div class="layui-form-item">
        <div class="layui-form-item">
            <label for="goodsName" class="layui-form-label">商品名字</label>
            <div class="layui-input-inline">
                <input type="text" id="goodsName" name="goodsName"
                       autocomplete="off" class="layui-input">
            </div>

        </div>
        <div class="layui-form-item">
            <label for="goodsFactory" class="layui-form-label">商品厂家</label>
            <div class="layui-input-inline">
                <input type="text" id="goodsFactory" name="goodsFactory"
                       autocomplete="off" class="layui-input"></div>
        </div>
        <div class="layui-form-item">
            <label for="goodsSpecs" class="layui-form-label">商品规格</label>
            <div class="layui-input-inline">
                <input type="text" id="goodsSpecs" name="goodsSpecs"
                       autocomplete="off" class="layui-input"></div>
            <div class="layui-form-mid layui-word-aux"></div>
        </div>
        <div class="layui-form-item">
            <label for="goodsModel" class="layui-form-label">商品型号</label>
            <div class="layui-input-inline">
                <input type="text" id="goodsModel" name="goodsModel"
                       autocomplete="off" class="layui-input"></div>
        </div>
        <div class="layui-form-item">
            <button class="layui-btn" style="margin-left: 50%">增加</button>
        </div>
    </div>
</form>
<table class="layui-table">
    <tr class="layui-table-header">
        <td>商品id</td>
        <td>商品名字</td>
        <td>商品厂家</td>
        <td>商品规格</td>
        <td>商品型号</td>
    </tr>
    <tr th:each="good:${Goods}" class="layui-table-body">
        <td th:text="${good.id}">id</td>
        <td th:text="${good.goodsName}">name</td>
        <td th:text="${good.goodsFactory}">factory</td>
        <td th:text="${good.goodsSpecs}">specs</td>
        <td th:text="${good.goodsModel}">model</td>
    </tr>

</table>


</body>
</html>